const { readFile, baseUrl1, request } = require('../base.js');

/* 查询趋势
* type: 类型,
  value: 数字拼接字符
*/
module.exports = async function findTrend(type = 'klb',limit = 100) {
    try {
      const url = `${baseUrl1}/lottery/demo/findj`;
      let res = await request({
        url,
        headers: {
            "content-type": "application/json;charset:utf-8",
        },
        data: {
          "tab": type,
          "zd":"issueno",
          "i":limit
        },
        method: "POST"
      });
      return res;
    } catch (error) {
      return error;
    }
  }